import request from '@/utils/request'

/**
 * 保存设置数据
 * @param {*} data
 * @returns
 */
export function saveSetting(data) {
    return request({
        url: '/api/setting/save',
        method: 'post',
        data
    })
}

/**
 * 获取设置数据
 * @param {*} params
 * @returns
 */
export function findSetting(params) {
    return request({
        url: '/api/setting/find',
        method: 'get',
        params
    })
}
